const fs = require('fs');
const path = require('path');
var filePath = path.join(__dirname, './3.txt');

fs.writeFileSync(filePath, 'no pains,no gains!', (err) => {
    if (err) {
        console.log(err);
    }
})
console.log("同步执行代码");